<template>
	<view class="tn-safe-area-inset-bottom" style="max-height: 90vh;">
		<!-- 提示信息 -->
		<u-toast ref="uToast" />
		<!-- 加载动画 -->
		<u-loading-page :loading="loading" :iconSize="100" />
		<!-- 导航栏 -->
		<u-navbar leftIcon=" " leftText=" " />
		<!-- <tn-nav-bar :isBack="false" backgroundColor="#FFFFFF">
			<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
				<view class="custom-nav__back" @click="tn('/circlePages/blogger')">
					<u-avatar :size="26" src="https://tnuiimage.tnkjapp.com/blogger/avatar_2.jpeg" />
				</view>
				<view class="scroll-box tn-margin-top tn-margin-left">
					<tn-tabs :list="scrollList" :current="current" @change="tabChange" activeColor="#000" :bold="true" :fontSize="36" />
				</view>
			</view>
		</tn-nav-bar> -->
		<!-- 推荐 -->
		<view v-if="current == 0">
			<view class="tn-margin-top-sm">
				<view class="tn-flex tn-flex-row-between tn-bg-yellow  tn-round tn-padding-xs tn-margin">
					<view class="justify-content-item tn-text-center tn-flex" style="padding: 25rpx 30rpx">
						<tn-avatar-group :lists="latestUserAvatar" size="sm" />
						<text class="tn-padding-xs">{{ userCount }} 人</text>
					</view>
					<view class="justify-content-item tn-text-right tn-padding-top-sm">
						<view class="tn-text-bold">圈子 · 积分榜</view>
						<view class="tn-text-xs tn-color-gray--dark tn-padding-top-xs">积分可兑换精美周边</view>
					</view>
					<view class="justify-content-item tn-text-right tn-margin-right tn-padding-top-lg">
						<text class="tn-icon-right tn-color-gray--dark"></text>
					</view>
				</view>
			</view>
			<view class="tn-flex tn-flex-row-between tn-margin-top">
				<view class="justify-content-item tn-margin tn-text-bold tn-text-xl">
					精选圈子
				</view>
				<view class="justify-content-item tn-margin tn-text-lg tn-color-grey">
					<text class="tn-padding-xs">全部</text>
					<text class="tn-icon-topics"></text>
				</view>
			</view>
			<!-- 精选圈子 -->
			<view class="tn-strip-bottom">
				<view class="tn-flex tn-flex-wrap tn-margin-bottom">
					<block v-for="(item, index) in circleList" :key="index">
						<view style="width: 33.3%;" @click="clickTo(`/circle/group/group?id=${item.id}`)">
							<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center ">
								<view class="tn-radius tn-padding-sm">
									<view class="tn-flex tn-flex-row-center">
										<u-avatar :size="90" shape="square" :src="item.cover[0]" />
									</view>
									<view class="tn-text-center tn-text-bold tn-padding-top-xs">{{ item.name }}</view>
									<view class="tn-text-center tn-text-xs tn-color-gray--dark tn-padding-top-xs">
										{{ item.followCount }}
									</view>
								</view>
							</view>
						</view>
					</block>
				</view>
			</view>
			<view class="tn-flex tn-flex-row-between" style="border-bottom: 1rpx solid #9e9e9e1d;">
				<view class="justify-content-item tn-text-bold"></view>
				<view class="justify-content-item tn-color-grey">
					<u-tabs
						:list="tabs"
						lineHeight="7"
						:current="currentTab"
						:lineColor="`url(https://oss-1257486725.cos.ap-guangzhou.myqcloud.com/cuui/tabs.png) 100% 100%`"
						:activeStyle="{
							color: '#303133',
							fontWeight: 'bold',
							transform: 'scale(1.05)'
						}"
						:inactiveStyle="{
							color: '#606266',
							transform: 'scale(1)'
						}"
						itemStyle="padding-left: 15px; padding-right: 15px; height: 34px;"
						@click="tabClick">
					</u-tabs>
				</view>
			</view>
			<view class="tn-flex tn-flex-direction-column tn-margin-top-sm tn-margin-bottom">
				<!-- 图文信息 -->
				<u-empty mode="data" v-if="!content.length" icon="http://cdn.uviewui.com/uview/empty/data.png" />
				<block v-for="(item, index) in content" :key="index">
					<view class="blogger__item tn-flex tn-flex-direction-column" @click="clickTo(`/circle/details/details?id=${item.id}`)">
						<view class="blogger__author tn-flex tn-flex-row-between tn-flex-col-center">
							<view class="justify__author__info" @click="clickTo(`/user/personal/index?id=${item.userId}`)">
								<view class="tn-flex tn-flex-row-center">
									<view class="tn-flex tn-flex-row-center tn-flex-col-center">
										<view>
											<tn-avatar shape="circle" :src="item.avatar" size="lg" />
											<text
												:class="item.sex == 1 ? 'tn-icon-sex-male tn-color-blue' : 'tn-icon-sex-female tn-color-red'"
												style="position: absolute; margin-left: -12rpx; margin-top: -5rpx;">
											</text>
										</view>
										<view class="tn-padding-right tn-text-ellipsis">
											<view class="tn-padding-right tn-padding-left-sm tn-text-bold tn-text-lg">
												{{ item.nickname }}
											</view>
											<view class="tn-padding-right tn-padding-left-sm tn-padding-top-xs tn-color-gray">
												{{ $u.timeFrom(item.createTime) }}
											</view>
										</view>
									</view>
								</view>
							</view>
							<view class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
								<text class="tn-icon-more-vertical tn-color-gray tn-text-bold tn-text-xxl"></text>
							</view>
						</view>
						<view class="blogger__desc tn-margin-top-sm tn-margin-bottom-sm tn-text-justify tn-flex-col-center tn-flex-row-left">
							<view
								v-for="(tags_item, tags_index) in item.tags" :key="tags_index"
								class="blogger__desc__label tn-float-left tn-margin-right tn-round tn-text-sm"
								:class="tags_index == 1 ? 'tn-bg-red--light' : tags_index == 2 ? 'tn-bg-cyan--light' : 'tn-bg-blue--light'"
							>
								<text>#</text>
								<text class="tn-text-df">{{ tags_item }}</text>
							</view>
						</view>
						<view>
							<text class="blogger__desc__content tn-flex-1 tn-text-justify tn-text-df">{{ item.content }}</text>
						</view>
						<block v-if="item.images">
							<view v-if="[1, 2, 4].indexOf(item.images.length) != -1" class="tn-padding-top-xs">
								<image
									v-for="(image_item, image_index) in item.images"
									:key="image_index"
									class="blogger__main-image"
									:class="{
										'blogger__main-image--1 tn-margin-bottom-sm': item.images.length === 1,
										'blogger__main-image--2 tn-margin-right-sm tn-margin-bottom-sm': item.images.length === 2 || item.images.length === 4
									}"
									:src="image_item"
									mode="aspectFill"
								/>
							</view>
							<view v-else class="tn-padding-top-xs">
								<tn-grid hoverClass="none" :col="3">
									<block v-for="(image_item, image_index) in item.images" :key="image_index">
										<!-- #ifndef MP-WEIXIN -->
										<tn-grid-item style="width: 30%;margin: 10rpx;">
											<image class="blogger__main-image blogger__main-image--3" :src="image_item" mode="aspectFill" />
										</tn-grid-item>
										<!-- #endif-->
										<!-- #ifdef MP-WEIXIN -->
										<tn-grid-item style="width: 30%;margin: 10rpx;">
											<image class="blogger__main-image blogger__main-image--3" :src="image_item" mode="aspectFill" />
										</tn-grid-item>
										<!-- #endif-->
									</block>
								</tn-grid>
							</view>
						</block>
						<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-top-xs">
							<view class="justify-content-item tn-color-gray tn-text-center">
								<view>
									<text class="blogger__count-icon tn-icon-eye"></text>
									<text class="tn-padding-right">{{ item.views }}</text>
									<text class="blogger__count-icon tn-icon-message"></text>
									<text class="tn-padding-right">{{ item.comments }}</text>
								</view>
							</view>
							<view class="justify-content-item tn-flex tn-flex-col-center">
								<view style="margin-right: 10rpx;margin-left: 20rpx;">
									<tn-avatar-group :lists="item.likesAvatar" size="sm" />
								</view>
								<text class="tn-color-gray">{{ item.likes }}人</text>
							</view>
						</view>
					</view>
					<!-- 边距间隔 -->
					<view class="tn-strip-bottom" v-if="index != content.length - 1"></view>
				</block>
				<!-- 广告 -->
				<view class="bannerad" :style="{'transform':'scale('+(screenWidth-40)/300+')!important'}">
					<ad class="ad" unit-id="adunit-de6843b4251e1367"></ad>
				</view>
				<u-loadmore :status="load" />
			</view>
			<view class='tn-tabbar-height'></view>
		</view>

		<!-- 活动 -->
		<view v-if="current == 1">
			<view class="tn-margin-bottom-lg" :style="{ paddingTop: vuex_custom_bar_height + 'px' }">
				<block v-for="(item, index) in reserve" :key="index">
					<view class="article-shadow tn-margin" @click="tn('/circlePages/reserve')">
						<view class="tn-flex">
							<view class="image-pic tn-margin-sm"
								:style="'background-image:url(' + item.userAvatar + ')'">
								<view class="image-article">
								</view>
							</view>
							<view class="tn-margin-sm tn-padding-top-xs" style="width: 100%;">
								<view class="tn-text-lg tn-text-bold clamp-text-1 tn-text-justify">
									{{ item.title }}
								</view>
								<view class="tn-flex tn-flex-row-between tn-flex-col-between tn-padding-top-xs" style="min-height: 105rpx;">
									<view class="justify-content-item tn-flex tn-flex-col-center">
										<tn-avatar-group :lists="item.viewUser.latestUserAvatar" size="sm" />
									</view>
									<view class="justify-content-item tn-flex tn-flex-col-center">
										<text class="tn-color-gray">{{ item.viewUser.viewUserCount }} 人参与</text>
									</view>
								</view>
								<view class="tn-flex tn-flex-row-between tn-flex-col-between">
									<view v-for="(label_item, label_index) in item.label" :key="label_index"
										class="justify-content-item tn-tag-content__item tn-margin-right tn-round tn-text-sm tn-text-bold"
										:class="[`tn-bg-${item.color}--light tn-color-${item.color}`]">
										<text class="tn-tag-content__item--prefix">#</text> {{ label_item }}
									</view>
									<view
										class="justify-content-item tn-color-gray tn-text-center tn-color-gray--disabled"
										style="padding-top: 5rpx;">
										<text class="tn-icon-eye tn-padding-right-xs tn-text-lg"></text>
										<text class="tn-padding-right tn-text-df">{{ item.collectionCount }}</text>
										<text class="tn-icon-fire tn-padding-right-xs tn-text-lg"></text>
										<text class="tn-text-df">{{ item.likeCount }}</text>
									</view>
								</view>
							</view>
						</view>
					</view>
				</block>
			</view>
			<view class='tn-tabbar-height'></view>
		</view>
	</view>
</template>

<script>
	import { getCircleData, getFineCircle, indexList } from '@/api'
	export default {
		name: 'circle',
		data() {
			return {
				loading: true,
				page: 1,
				size: 10,
				load: 'loadmore',
				current: 0,
				currentTab: 0,
				userCount: 0,
				scrollList: [{
						name: '推荐'
					}
				],
				tabs: [{
						name: '最新',
						badge: {
							isDot: true
						}
					},
					{
						name: '最热'
					}
				],
				circleList: [],
				latestUserAvatar: [],
				content: [],
				reserve: [{
						userAvatar: 'https://tnuiimage.tnkjapp.com/blogger/avatar_4.jpeg',
						userName: '图鸟北北',
						date: '2022年5月20日',
						color: 'red',
						label: ['新年祝福'],
						title: '2023年祝福接力',
						desc: '祝福接力活动：预约接龙的用户，将收到祝福通知',
						mainImage: 'https://tnuiimage.tnkjapp.com/shop/prototype2.jpg',
						viewUser: {
							latestUserAvatar: [
								'https://tnuiimage.tnkjapp.com/blogger/avatar_1.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_2.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_3.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_4.jpeg',
							],	
							viewUserCount: 567
						},
						collectionCount: 543,
						commentCount: 543,
						likeCount: 206
					},
					{
						userAvatar: 'https://tnuiimage.tnkjapp.com/blogger/blogger_beibei.jpg',
						userName: '图鸟北北',
						date: '2022年5月20日',
						color: 'cyan',
						label: ['时光信件'],
						title: '寄给十年后自己',
						desc: '时光邮局：预约接龙的用户，十年后，将收到一份来着十年前发出的信件',
						mainImage: 'https://tnuiimage.tnkjapp.com/shop/prototype1.jpg',
						viewUser: {
							latestUserAvatar: [
								'https://tnuiimage.tnkjapp.com/blogger/avatar_1.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_2.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_3.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_4.jpeg',
							],
							viewUserCount: 987
						},
						collectionCount: 567,
						commentCount: 69,
						likeCount: 65
					},
					{
						userAvatar: 'https://tnuiimage.tnkjapp.com/blogger/avatar_2.jpeg',
						userName: '图鸟北北',
						date: '2022年5月20日',
						color: 'blue',
						label: ['纪念日'],
						title: '常常忘记纪念日？',
						desc: '纪念日提醒：预约接龙的用户，微信上将收到纪念日提醒通知',
						mainImage: 'https://tnuiimage.tnkjapp.com/shop/computer2.jpg',
						viewUser: {
							latestUserAvatar: [
								'https://tnuiimage.tnkjapp.com/blogger/avatar_1.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_2.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_3.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_4.jpeg',
							],
							viewUserCount: 321
						},
						collectionCount: 654,
						commentCount: 232,
						likeCount: 543
					},
					{
						userAvatar: 'https://tnuiimage.tnkjapp.com/blogger/avatar_3.jpeg',
						userName: '图鸟北北',
						date: '2022年5月20日',
						color: 'green',
						label: ['团购接龙'],
						title: '冰箱空空如也？一起团购屯菜吖',
						desc: '团购活动：预约接龙的用户，将参与一起来买菜',
						mainImage: 'https://tnuiimage.tnkjapp.com/shop/phonecase1.jpg',
						viewUser: {
							latestUserAvatar: [
								'https://tnuiimage.tnkjapp.com/blogger/avatar_1.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_2.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_3.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_4.jpeg',
							],
							viewUserCount: 230
						},
						collectionCount: 987,
						commentCount: 236,
						likeCount: 342
					},
					{
						userAvatar: 'https://tnuiimage.tnkjapp.com/shop/phonecase2.jpg',
						userName: '图鸟北北',
						date: '2022年5月20日',
						color: 'orange',
						label: ['回母校'],
						title: '常回家看看',
						desc: '线下活动：预约接龙的用户，将表示参与了活动当天回母校',
						mainImage: 'https://tnuiimage.tnkjapp.com/shop/phonecase2.jpg',
						viewUser: {
							latestUserAvatar: [
								'https://tnuiimage.tnkjapp.com/blogger/avatar_1.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_2.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_3.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_4.jpeg',
							],
							viewUserCount: 106
						},
						collectionCount: 765,
						commentCount: 32,
						likeCount: 91
					},
					{
						userAvatar: 'https://tnuiimage.tnkjapp.com/shop/watch1.jpg',
						userName: '图鸟北北',
						date: '2022年5月20日',
						color: 'purplered',
						label: ['婚礼'],
						title: '我们结婚啦',
						desc: '婚礼请帖：欢迎来参加我们的婚礼宴席，不用随礼',
						mainImage: 'https://tnuiimage.tnkjapp.com/shop/watch1.jpg',
						viewUser: {
							latestUserAvatar: [
								'https://tnuiimage.tnkjapp.com/blogger/avatar_1.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_2.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_3.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_4.jpeg',
							],
							viewUserCount: 232
						},
						collectionCount: 776,
						commentCount: 48,
						likeCount: 86
					},
					{
						userAvatar: 'https://tnuiimage.tnkjapp.com/shop/sticker.jpg',
						userName: '图鸟北北',
						date: '2022年5月20日',
						color: 'purple',
						label: ['大扫除'],
						title: '组队参加大扫除公益活动',
						desc: '活动组队：预约接龙的学生，将表示参与了当天的大扫除活动',
						mainImage: 'https://tnuiimage.tnkjapp.com/shop/sticker.jpg',
						viewUser: {
							latestUserAvatar: [
								'https://tnuiimage.tnkjapp.com/blogger/avatar_1.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_2.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_3.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_4.jpeg',
							],
							viewUserCount: 456
						},
						collectionCount: 342,
						commentCount: 42,
						likeCount: 76
					},
					{
						userAvatar: 'https://tnuiimage.tnkjapp.com/blogger/avatar_1.jpeg',
						userName: '图鸟北北',
						date: '2022年5月20日',
						color: 'brown',
						label: ['新疆出游'],
						title: '一起组队去新疆看西西',
						desc: '旅游出行：一起去新疆看西西',
						mainImage: 'https://tnuiimage.tnkjapp.com/shop/card.jpg',
						viewUser: {
							latestUserAvatar: [
								'https://tnuiimage.tnkjapp.com/blogger/avatar_1.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_2.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_3.jpeg',
								'https://tnuiimage.tnkjapp.com/blogger/avatar_4.jpeg',
							],
							viewUserCount: 129
						},
						collectionCount: 265,
						commentCount: 22,
						likeCount: 62
					}
				],
			}
		},
		created() {
			this.getCircleData();
			this.getFineCircle();
			this.getIndexList();
		},
		methods: {
			// 圈子数据
			async getCircleData() {
				const { code, data, message } = await getCircleData();
				if (code !== 1000) {
					return this.$refs.uToast.show({
						type: 'error',
						message: message
					});
				}
				this.userCount = data.userCount;
				this.latestUserAvatar = data.avatar;
			},
			// 圈子列表
			async getFineCircle() {
				const { code, data, message } = await getFineCircle();
				if (code !== 1000) {
					return this.$refs.uToast.show({
						type: 'error',
						message: message
					});
				}
				this.circleList = data;
			},
			// 获取动态
			async getIndexList() {
				const { page, size, currentTab } = this;
				const { code, data, message } = await indexList({ page, size, type: currentTab });
				if (code !== 1000) {
					return this.$refs.uToast.show({
						type: 'error',
						message: message
					});
				}
				this.loading = false;
				this.content = data;
			},
			// 加载更多
			async loadMore() {
				const { page, size, currentTab } = this;
				if (size * page >= this.content.length || this.load === 'loading') {
					this.load = 'nomore';
					return;
				}
				this.load = 'loading';
				const { code, data, message } = await indexList({ page: page + 1, size, type: currentTab });
				if (code !== 1000) {
					return this.$refs.uToast.show({
						type: 'error',
						message: message
					});
				}
				if (data.length === 0) {
					this.load = 'nomore';
					return;
				}
				this.page = page + 1;
				this.content = [...this.content, ...data];
			},
			tabClick(e) {
				this.currentTab = e.index;
				this.page = 1;
				const timer = setTimeout(() => {
					clearTimeout(timer);
					this.getIndexList();
				}, 500);
			},
			// tab选项卡切换
			tabChange(index) {
				this.current = index;
			},
			// 跳转
			clickTo(e) {
				uni.navigateTo({
					url: e
				});
			},
			// 跳转
			tn(e) {
				uni.navigateTo({
					url: e,
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.tn-tabbar-height {
		height: calc(env(safe-area-inset-bottom) / 2);
	}

	/* 自定义导航栏内容 start */
	.custom-nav {
		height: 100%;

		&__back {
			margin: auto 5rpx;
			font-size: 40rpx;
			margin-right: 10rpx;
			margin-left: 30rpx;
			flex-basis: 5%;
		}

		&__search {
			flex-basis: 60%;
			width: 100%;
			height: 100%;

			&__box {
				width: 100%;
				height: 70%;
				padding: 10rpx 0;
				margin: 0 30rpx;
				border-radius: 60rpx 60rpx 0 60rpx;
				font-size: 24rpx;
			}

			&__icon {
				padding-right: 10rpx;
				margin-left: 20rpx;
				font-size: 30rpx;
			}

			&__text {
				color: #AAAAAA;
			}
		}
	}

	.logo-image {
		width: 60rpx;
		height: 60rpx;
		position: relative;
		margin-top: -15rpx;
	}

	.logo-pic {
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border-radius: 50%;
	}

	/* 自定义导航栏内容 end */
	/* 博主头像 start*/
	.image-circle {
		// padding: 95rpx;
		width: 190rpx;
		height: 190rpx;
		font-size: 40rpx;
		font-weight: 300;
		position: relative;
	}

	.image-pic {
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border-radius: 10rpx;
	}


	/* 文章内容 start*/
	.blogger {
		&__item {
			padding: 30rpx;
		}

		&__author {
			&__btn {
				margin-right: -12rpx;
				opacity: 0.5;
			}
		}

		&__desc {
			line-height: 40rpx;

			&__label {
				padding: 0 20rpx;
				margin: 0rpx 18rpx 0 0;

				&--prefix {
					color: #00FFC8;
					padding-right: 10rpx;
				}
			}
		}

		&__content {
			margin-top: 18rpx;
			padding-right: 18rpx;

			&__data {
				line-height: 46rpx;
				text-align: justify;
				overflow: hidden;
				transition: all 0.25s ease-in-out;

			}

			&__status {
				margin-top: 10rpx;
				font-size: 26rpx;
				color: #82B2FF;
			}
		}

		&__main-image {
			border-radius: 16rpx;

			&--1 {
				width: 100%;
				height: 400rpx;
			}

			&--2 {
				max-width: 325rpx;
				max-height: 325rpx;
			}

			&--3 {
				height: 212rpx;
				width: 100%;
			}
		}

		&__count-icon {
			font-size: 40rpx;
			padding-right: 5rpx;
		}

		&__ad {
			width: 100%;
			height: 500rpx;
			transform: translate3d(0px, 0px, 0px) !important;

			::v-deep .uni-swiper-slide-frame {
				transform: translate3d(0px, 0px, 0px) !important;
			}

			.uni-swiper-slide-frame {
				transform: translate3d(0px, 0px, 0px) !important;
			}

			&__item {
				position: absolute;
				width: 100%;
				height: 100%;
				transform-origin: left center;
				transform: translate3d(100%, 0px, 0px) scale(1) !important;
				transition: transform 0.25s ease-in-out;
				z-index: 1;

				&--0 {
					transform: translate3d(0%, 0px, 0px) scale(1) !important;
					z-index: 4;
				}

				&--1 {
					transform: translate3d(13%, 0px, 0px) scale(0.9) !important;
					z-index: 3;
				}

				&--2 {
					transform: translate3d(26%, 0px, 0px) scale(0.8) !important;
					z-index: 2;
				}
			}

			&__content {
				border-radius: 40rpx;
				width: 640rpx;
				height: 500rpx;
				overflow: hidden;
			}

			&__image {
				width: 100%;
				height: 100%;
			}
		}
	}

	/* 文章内容 end*/

	/* 间隔线 start*/
	.tn-strip-bottom {
		width: 100%;
		border-bottom: 20rpx solid rgba(241, 241, 241, 0.8);
	}

	/* 间隔线 end*/

	/* 广告内容 start */
	.ad-image {
		width: 80rpx;
		height: 80rpx;
		position: relative;
	}

	.ad-pic {
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border-radius: 20%;
	}

	/* 自定义导航栏内容 end */


	/* 全屏轮播  start*/
	.card-swiper {
		height: 100vh !important;
	}

	.card-swiper swiper-item {
		width: 750rpx !important;
		left: 0rpx;
		box-sizing: border-box;
		overflow: initial;
	}

	.card-swiper swiper-item .swiper-item {
		width: 100%;
		display: block;
		height: 100vh;
		border-radius: 0rpx;
		transform: scale(1);
		transition: all 0.2s ease-in 0s;
		overflow: hidden;
	}

	.card-swiper swiper-item.cur .swiper-item {
		transform: none;
		transition: all 0.2s ease-in 0s;
	}

	.card-swiper swiper-item .swiper-item-png {
		margin-top: -50vh;
		width: 100%;
		display: block;
		border-radius: 0rpx;
		transform: translate(1040rpx, 20rpx) scale(0.5, 0.5);
		transition: all 0.6s ease 0s;
		// overflow: hidden;
	}

	.card-swiper swiper-item.cur .swiper-item-png {
		margin-top: -100vh;
		width: 900rpx;
		transform: translate(-80rpx, 0rpx) scale(1, 1);
		transition: all 0.6s ease 0s;
	}

	.image-banner {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.image-banner image {
		width: 100%;
	}

	/* 轮播指示点 start*/
	.indication {
		z-index: 9999;
		width: 100%;
		height: 36rpx;
		position: fixed;
		// display:flex;
		display: block;
		flex-direction: row;
		align-items: center;
		justify-content: center;
	}

	.spot {
		background-color: #000;
		opacity: 0.3;
		width: 10rpx;
		height: 10rpx;
		border-radius: 20rpx;
		margin: 20rpx 0 !important;
		left: 95vw;
		top: -60vh;
		position: relative;
	}

	.spot.active {
		opacity: 0.6;
		height: 30rpx;
		background-color: #000;
	}

	/* 资讯主图 start*/
	.image-article {
		border-radius: 8rpx;
		border: 1rpx solid #F8F7F8;
		width: 200rpx;
		height: 200rpx;
		position: relative;
	}

	.image-pic {
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border-radius: 10rpx;
	}

	.article-shadow {
		border-radius: 15rpx;
		box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
	}

	/* 文字截取*/
	.clamp-text-1 {
		-webkit-line-clamp: 1;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		text-overflow: ellipsis;
		overflow: hidden;
	}

	.clamp-text-2 {
		-webkit-line-clamp: 2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		text-overflow: ellipsis;
		overflow: hidden;
	}

	/* 标签内容 start*/
	.tn-tag-content {
		&__item {
			display: inline-block;
			line-height: 35rpx;
			padding: 5rpx 25rpx;

			&--prefix {
				padding-right: 10rpx;
			}
		}
	}

	.bannerad {
		display: flex;
		justify-content: center;
	}

	.bannerad .ad {
		flex: 1;
	}
</style>